@extends('backend.layout')

@section('content')
<div id="form-edit-user">
    <p><small>Utilisateur créé le <strong>{{ $user->created_at }}</strong></small></p>
    <p><small>Dernière modification le <strong>{{ $user->updated_at }}</strong></small></p>
    {{ Form::model($user, array('url' => array('admin/users/update', $user->id))) }}
        <div class="form-group">
            {{ Form::label('name', 'Nom') }}
            {{ Form::text('name', null, array('class' => 'form-control')) }}
        </div>
        <div class="form-group">
            {{ Form::label('email', 'E-mail') }}
            {{ Form::text('email', null, array('class' => 'form-control')) }}
        </div>
        <div class="form-group">
            {{ Form::label('login', 'Nom d\'utilisateur') }}
            {{ Form::text('login', null, array('class' => 'form-control')) }}
        </div>
        <div class="form-group">
            {{ Form::label('password', 'Nouveau mot de passe') }}
            {{ Form::password('password', array('class' => 'form-control', 'autocomplete' => 'off')) }}
        </div>
        <div class="form-group">
            <label>
                Administrateur {{ Form::checkbox('is_admin', 1) }}
            </label>
        </div>
        {{ Form::button('Modifier', array('class' => 'btn btn-default', 'type' => 'submit')) }}
    {{ Form::close() }}
</div>
@stop